<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.common.DateUtil" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--更新对应台账中督查状态字段为终止，并且将当前操作者以及操作日期写入台账（终止人，终止日期）--%>
<%
    JSONObject jsonData = new JSONObject();
    RecordSet rs = new RecordSet();
    String curdate = DateUtil.getCurrentDate();
    String ids = Util.null2String(request.getParameter("ids"));
    String userid = Util.null2String(request.getParameter("userid"));
    String formid = Util.null2String(request.getParameter("formid"));
    String sql = "";
    if("-102".equals(formid)){//周期督查督办台账
        sql = "update uf_zqdc set zzr='"+userid+"',zzrq='"+curdate+"',dczt=2 where id in ("+ids+")";
    }
    if("-173".equals(formid)){//周期任务台账
        sql = "update uf_zqrwtz set zzr='"+userid+"',zzrq='"+curdate+"',rwzt=2 where id in ("+ids+")";
    }
    if("-106".equals(formid)){//重点工程建设督查台账
        sql = "update uf_zdgcdc set zzr='"+userid+"',zzrq='"+curdate+"',dczt=2 where id in ("+ids+")";
    }

    boolean flag = rs.executeUpdate(sql);
    jsonData.put("flag", flag);
    out.print(jsonData.toJSONString());
%>





